package com.ponhu.ea2.stockcenter.provider.service.entity;

import com.baomidou.mybatisplus.extension.service.IService;
import com.ponhu.ea2.stockcenter.provider.entity.StockWarehouseChange;
import com.ponhu.ea2.stockcenter.provider.entity.StockWarehouseChangeSnapshot;
import com.ponhu.ea2.stockcenter.provider.entity.StockWarehouseRelation;
import org.springframework.transaction.annotation.Transactional;

import java.util.List;

/**
 * 仓库库存变动快照表服务类
 */
public interface StockWarehouseChangeSnapshotService extends IService<StockWarehouseChangeSnapshot> {

    /**
     * 批量保存仓库库存变动快照
     * @param changeList
     * @param stockWarehouseRelations
     * @return
     */
    boolean saveBatchSnapshots(List<StockWarehouseChange> changeList, List<StockWarehouseRelation> stockWarehouseRelations);

}
